package ac.svn.accesscontrol.ui;

import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;

public class XMenuBar extends JMenuBar implements IUIConstants{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private JMenu actionMenu;
	private JMenu toolsMenu;
	private JMenu helpMenu;
	
	public XMenuBar()
	{
		super();
		initComponents();
	}

	private void initComponents() {
		
		actionMenu = new JMenu("Action");
		toolsMenu = new JMenu("Tools");
		helpMenu = new JMenu("Help");
	
		add(actionMenu);
		add(toolsMenu);
		add(helpMenu);

		helpMenu.add(new JMenuItem("Refersh - F5 "));
		helpMenu.add(new JMenuItem("Maximize - F6 "));
		helpMenu.add(new JMenuItem("User/Group Search - F3"));
		helpMenu.add(new JMenuItem("Location Search - F4 "));
		
		
		registerComponents();
	}

	private void registerComponents() 
	{
		UIComponentLibrary.addComponent(M_ACTION_MENU, actionMenu);
		UIComponentLibrary.addComponent(M_TOOL_MENU,toolsMenu);
	}
	

}
